package com.itheima.dao;

import com.itheima.domain.User;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public interface UserDao {
    boolean Register(User user) throws SQLException;

    User login(User user) throws SQLException;

    List<User> findAllUser() throws SQLException;

    boolean addUser(User user) throws SQLException;

    User findById(String id) throws SQLException;

    boolean update(User user) throws SQLException;

    boolean deleteById(String id) throws SQLException;
}
